import { setStorage, getStorage } from '../common/storage.js'

const SOUND_KEY = 'sound'

/**
 * 获取是否有声音
 * @returns
 */
export const getSound = () => {
  return getStorage(SOUND_KEY)
}

/**
 * 设置是否有声音
 */
export const setSound = (level) => {
  setStorage(SOUND_KEY, level)
}